<%--
  Created by IntelliJ IDEA.
  User: meng
  Date: 2020/5/25
  Time: 9:44
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<% String path = request.getContextPath();%>

<c:if test="${requestScope.pageInfo!=null}">
    <c:forEach items="${requestScope.pageInfo.list}" var="companyPosition" varStatus="x">
        <li>
            <a href="<%=path%>/web/company/companyInfo?companyName=${companyPosition.company.companyName}">
            <%--<a href="${pageContext.servletContext.contextPath}/web/job/companyIntroduce?companyId=${companyPosition.company.id}">--%>
                <div class="image-ti">
                    <marquee align="left" behavior="scroll" bgcolor="" direction="right" hspace="50" vspace="2" loop="-1" scrollamount="10" scrolldelay="100" onMouseOut="this.start()" onMouseOver="this.stop()">
                        <c:if test="${companyPosition.company.logo==null}">
                            <img src="${pageContext.servletContext.contextPath}/static/companyLicenseImages/56eaf250-7e73-4cbe-9c60-892f1f892737.jpg">
                        </c:if>
                        <c:if test="${companyPosition.company.logo!=null}">
                            <img src="${pageContext.servletContext.contextPath}/static/${companyPosition.company.logo}">
                        </c:if>
                    </marquee>
                </div>
                <p class="slide-title"> ${companyPosition.name}[${companyPosition.city.cityName}]</p><%--岗位名称[地址]--%>
                <p class="slide-body">

                    <span class="slide-body-nup">
                        <i class="slide-body-nup-icon"></i>
                        招聘人： ${companyPosition.person.personName}

                    </span>
                    <span class="slide-body-nup">
                        <i class="slide-body-nup-icon"></i>
                         职位类型： ${companyPosition.positionType.positionTypeName}

                    </span>
                    <span class="slide-body-nup">
                        <i class="slide-body-nup-icon"></i>
                        职位名称： ${companyPosition.position.positionName}

                    </span>

                    <span class="slide-body-nup">
                        <i class="slide-body-nup-icon"></i>
                    工作性质： ${companyPosition.positionAttr.attr}
                    </span>
                    <span class="slide-body-nup">
                        <i class="slide-body-nup-icon"></i>
                    技能要求： ${companyPosition.skillRequest}
                    </span>

                    <span class="slide-body-nup">
                        <i class="slide-body-nup-icon"></i>
                    薪资： ${companyPosition.salaryMin}K-${companyPosition.workTime.workExpTime}K
                    </span>
                    <span class="slide-body-nup">
                        <i class="slide-body-nup-icon"></i>
                    工作经验：
                    </span>
                    <span class="slide-body-nup">
                        <i class="slide-body-nup-icon"></i>
                    学历要求： ${companyPosition.educationalBackgroundType.educationalBackgroundTypeName}
                    </span>
                    <span class="slide-body-nup">
                        <i class="slide-body-nup-icon"></i>
                    公司规模： ${companyPosition.company.scope}
                    </span>
                    <span class="slide-body-nup">
                        <i class="slide-body-nup-icon"></i>
                    职位描述： ${companyPosition.positionDescription}
                    </span><br>
                    <span class="slide-body-price">${companyPosition.company.companyName}</span><%--公司--%>
                </p>
            </a>
        </li>
    </c:forEach>
    <li style="height: 30px;" class="list-page">
        <a >
            <c:forEach begin="1" end="${requestScope.pageInfo.pages}" var="i">
                <c:if test="${i eq requestScope.pageInfo.pageNum}" var="isCur">
                    <span class="current">${i}</span>
                </c:if>
                <c:if test="${not isCur}">
                    <a href="#">${i}</a>
                </c:if>
            </c:forEach>
                ${requestScope.pageInfo.pageNum}/${requestScope.pageInfo.pages}
        </a>
    </li>
    <li style="height: 50px;"></li>
</c:if>
<c:if test="${requestScope.pageInfo==null}">

</c:if>



